<?php

namespace App;

use Zizaco\Entrust\EntrustPermission;

class Permission extends EntrustPermission
{
    public $timestamps = true;
    public static $ROUTE_METHOD_ANY = 1;
    public static $ROUTE_METHOD_GET = 2;
    public static $ROUTE_METHOD_POST = 3;
    public static $ROUTE_METHOD_PUT = 4;
    public static $ROUTE_METHOD_DELETE = 5;
    public static $ROUTE_METHOD_PATCH = 6;
    public static $ROUTE_METHOD_OPTIONS = 7;

    public static $ROUTE_METHOD_MAP = [
        ['key' => 1, 'text' => 'any'],
        ['key' => 2, 'text' => 'get'],
        ['key' => 3, 'text' => 'post'],
        ['key' => 4, 'text' => 'put'],
        ['key' => 5, 'text' => 'delete'],
        ['key' => 6, 'text' => 'patch'],
        ['key' => 7, 'text' => 'options'],
    ];
}
